﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 编程能力._1523.在区间范围内统计奇数数目.简单
{
    class MainProject
    {
        static void Main(string[] args)
        {
            Console.WriteLine(countOdds(3,7));
            Console.ReadKey();
        }

        public static int pre(int x)
        {
            return (x + 1) >> 1;
        }
        public static int countOdds(int low, int high)
        {
            return pre(high) - pre(low-1);
        }

    }
}
